<% title "#{@console[:name]}" %>
<%= title_actions(
        button_group(link_to("Ctrl-Alt-Del", "#", :id => "sendCtrlAltDelButton", :class => "btn btn-default"),
                     if @host && authorized_for(hash_for_host_path(@host))
                       link_to(_("Back to host"), current_host_details_path(@host), :title => _("Back to host"), :class => 'btn btn-default')
                     end
        ),
        documentation_button("7.1NoVNC",
          {:id => "troubleshootingButton", :class => "btn btn-default"}
        )
 ) %>

<div id='vnc'
     data-host='<%= @console[:host] %>'
     data-port='<%= @console[:port] %>'
     data-path='<%= @console[:path] %>'
     data-token-protocol='<%= @console[:token_protocol] %>'
     data-plain-protocol='<%= @console[:plain_protocol] %>'
     data-password='<%= @console[:password] %>'
     data-encrypt='<%= @console[:encrypt] %>'
>
  <div id="noVNC_status_bar" class="console-status">
    <div id="noVNC_status" class="col-md-12 label">Loading ...</div>
  </div>

  <div id="noVNC_screen" class="console-screen"></div>
</div>
